﻿using System;
using System.Web;
using DMS.BaseClass;

namespace DMS.Web
{
    public partial class Error : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string ErrorInfo
        {
            get
            {
                string msg = string.Empty;

                HttpContext context = HttpContext.Current;
                Exception lastException = context.Server.GetLastError();
                if (lastException != null)
                {
                    msg = string.Format("{0}<br />{1}", lastException.Message, lastException.Source);
                }else
                {
                    msg = "无异常信息。";
                }

                return msg;
            }
        }
    }
}